import jdk.internal.org.objectweb.asm.tree.MultiANewArrayInsnNode;

import java.util.Scanner;

public class java3_9 {

    public static void main(String[] args) {
        String a ;
        Scanner scanner = new Scanner(System.in);

        int s = 3;
        while(s != 0){
            a = scanner.nextLine();
            if(a.equals("123456") == true){
                System.out.println("恭喜你，登录成功");
                break;
            }else{
                s--;
                System.out.println("密码错误还剩"+s+"机会");
            }
        }
        if(s == 0){
            System.out.println("账号封禁");
        }
    }
    public static void main8(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();

        fun(a);
        System.out.println("\n");
        while(a != 0){
            System.out.print(a%10+" ");
            a /= 10;
        }

    }
    public static void fun(int b){
        if(b > 9){
            fun(b/10);
        }
        System.out.print(b%10+" ");

}

    public static void main7(String[] args) {
        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(j+"*"+i+"="+(i*j)+"  ");
            }
            System.out.print("\n");
        }
    }





    public static void main6(String[] args) {
        int sum1 = 0;
        for (int i = 1; i <= 100; i++) {
            int a=i;
            while(a != 0){
                if (a % 9 == 0) {
                    sum1 += 1;
                }

                a = a/10;
            }
        }
        System.out.println(sum1);
    }







    public static void main5(String[] args) {
        int [] array = new int[]{5,15,26,35};
        double ave = averrage(array);
        System.out.println(ave);
    }

    public static double averrage(int []a){
        int i = 0;
        double sum = 0.0;
        for (; i < a.length; i++) {
            sum += a[i];
        }
        return sum/i;
    }


    public static void main4(String[] args) {
        int [] array = new int[]{5,15,25,35};
        int total = sum(array);
        System.out.println(total);
    }

    public static  int sum(int []a){
        int sum = 0;

        for (int i = 0; i < a.length; i++) {
            sum += a[i];
        }
        return sum;
    }




    public static void main3(String[] args) {
        int [] array = new int[]{2,4,6,8,7,10,50};
        System.out.println("修改之前");
        printArray(array);
        System.out.println("==============");
        System.out.println("修改之后");
        transform(array);
        printArray(array);
    }
    public static void transform(int [] a){
        for (int i = 0; i < a.length; i++) {
            a[i] = a[i] * 2;
        }
    }
    public static void printArray(int [] a){
        for (int i = 0; i < a.length; i++) {
            System.out.print(a[i]+" ");

        }
        System.out.println("\n");
    }



    public static void main2(String[] args) {
    int [] array = new int[20];
        for (int i = 0; i < array.length; i++) {
            array[i] = i + 1;
        }
        printArray(array);

    }



    public static void main1(String[] args) {

        int [] array = new int[100];
        for (int i = 0; i < array.length; i++) {
            array[i] = i + 1;
        }
        for (int i = 0; i < array.length; i++) {
            System.out.println(array[i]);
        }
    }
}
